/**
 * jims
 */
package com.jims.master.modules.patient.myAttention.service;

import java.util.Date;
import java.util.List;

import com.jims.master.modules.patient.myAttention.dao.ElectronGroupConsultationIntoDao;
import com.jims.master.modules.patient.myAttention.entity.ElectronGroupConsultationInto;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;

/**
 * Service
 * @author jct
 * @version 2018-06-07
 */
@Service
@Transactional(readOnly = true)
public class ElectronGroupConsultationIntoService extends CrudService<ElectronGroupConsultationIntoDao, ElectronGroupConsultationInto> {

	public ElectronGroupConsultationInto get(String id) {
		return super.get(id);
	}
	
	public List<ElectronGroupConsultationInto> findList(ElectronGroupConsultationInto electronGroupConsultationInto) {
		return super.findList(electronGroupConsultationInto);
	}
	
	public Page<ElectronGroupConsultationInto> findPage(Page<ElectronGroupConsultationInto> page, ElectronGroupConsultationInto electronGroupConsultationInto) {
		return super.findPage(page, electronGroupConsultationInto);
	}
	
	@Transactional(readOnly = false)
	public int save(ElectronGroupConsultationInto electronGroupConsultationInto) {
		return super.save(electronGroupConsultationInto);
	}
	
	@Transactional(readOnly = false)
	public int delete(ElectronGroupConsultationInto electronGroupConsultationInto) {
		return super.delete(electronGroupConsultationInto);
	}

	public List<ElectronGroupConsultationInto> groupList(String doctorId) {
		return dao.groupList(doctorId);
	}

	public int jianyi(String huizhenyijian,String id) {
		return dao.jianyi(huizhenyijian,new Date(),id);
	}

	public int saveconfirm(String id) {
		return dao.saveconfirm(id,new Date());
	}
	public String getConfirmCount(String huizhenid) {
		return dao.getConfirmCount(huizhenid);
	}
	public String getCount(String huizhenid) {
		return dao.getCount(huizhenid);
	}
	public List<ElectronGroupConsultationInto> getByhuizhen(String huizhenid) {
		return dao.getByhuizhen(huizhenid);
	}

	public List<ElectronGroupConsultationInto> docgroupList(String doctorId,String patientId) {
		return dao.docgroupList(doctorId,patientId);
	}
}